#include "recovery/fs/Path.h"

namespace recovery {
namespace fs {

//TODO: Error, IOError
std::string Path::from(const std::string & dir, const std::string name){
    if(!dir.empty() && !name.empty()){
        return dir + Path::DirectorySeparator + name;
    }
    else{
        //TODO:
        return std::string();
    }
}
Status from(const std::string & dir, const std::string name, std::string & path){
    if(!dir.empty() && !name.empty()){
		path += dir;
		path += Path::DirectorySeparator;
		path += name;
        return Status::OK();
    }
    return Status::InvalidArgument("dir or name is empty");
}


}// end of namespace fs
}// end of namespace recovery
